package medemede;

import java.io.FilterOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class EncryptionEnglish extends FilterOutputStream {

    EncryptionEnglish(OutputStream out) {
        super(out);
    }
    @Override
    public void write(int x) throws IOException {
        if(x<97){
            x=x+32+2;
            if(x>122)
                x=x-2;
        }else {
            x=x-32-2;
            if(x<65)
                x=x+2;
        }
        super.write(x);
    }
}
